update this function and document in a comment block what it does based on the content below: 
Challonge API Documentation paste here